using System.Web.UI;

namespace OpenWaves.Web.Controls
{
    public static class DataItemContainerExtensions
    {
        public static string Cycle(this IDataItemContainer item, params string[] items)
        {
            return items[item.DataItemIndex % items.Length];
        }
    }
}